package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperWebNoticeRead implements Serializable {
    /**
     * 告示ID
     */
    private Integer nid;

    /**
     * 0-未读；1-已读
     */
    private Integer isread;

    /**
     * 关联人帐号
     */
    private String username;

    private static final long serialVersionUID = 1L;

    /**
     * 告示ID
     */
    public Integer getNid() {
        return nid;
    }

    /**
     * 告示ID
     */
    public void setNid(Integer nid) {
        this.nid = nid;
    }

    /**
     * 0-未读；1-已读
     */
    public Integer getIsread() {
        return isread;
    }

    /**
     * 0-未读；1-已读
     */
    public void setIsread(Integer isread) {
        this.isread = isread;
    }

    /**
     * 关联人帐号
     */
    public String getUsername() {
        return username;
    }

    /**
     * 关联人帐号
     */
    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", nid=").append(nid);
        sb.append(", isread=").append(isread);
        sb.append(", username=").append(username);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWebNoticeRead other = (SuperWebNoticeRead) that;
        return (this.getNid() == null ? other.getNid() == null : this.getNid().equals(other.getNid()))
            && (this.getIsread() == null ? other.getIsread() == null : this.getIsread().equals(other.getIsread()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNid() == null) ? 0 : getNid().hashCode());
        result = prime * result + ((getIsread() == null) ? 0 : getIsread().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        return result;
    }
}